﻿<h3>@Loc.Companies</h3>
<div class="btn-toolbar">
<a href="#view=editcompany" class="btn btn-primary"><i class="icon-plus icon-white"></i> New company</a>
</div>
<table class="table table-bordered table-striped">
    <colgroup>
        <col/>
        <col/>
        <col style="width: 125px;"/>
    </colgroup>
    <thead>
        <tr>
            <th>@Loc.Name</th>
            <th>@Loc.Description</th>
            <th></th>
        </tr>
    </thead>
    <tbody data-bind="foreach: companies">
        <tr>
            <td data-bind="text: Name"></td>
            <td data-bind="text: Description"></td>
            <td>
                <a class="btn btn-primary" data-bind="attr: {href: '#view=editcompany&id='+Id }" href="">Edit</a>
                <a class="btn" href="#" data-bind="click: $parent.deleteCompany">Delete</a>
            </td>
        </tr>
    </tbody>
</table>
